package com.fzrskj.cloud.free.core.enums;

/**
 * HostIpStateEnum.
 *
 * @author zj.
 *         Created on 2018/9/17 0017.
 */
public enum HostIpStateEnum {
    /**
     * 可用.
     */
    USABLE(1, "可用"),
    /**
     * 已用
     */
    USED(2, "已用");

    /**
     * 状态值.
     */
    private Integer state;

    /**
     * 状态名称.
     */
    private String name;

    /**
     * 构造
     * @param state
     * @param name
     */
    HostIpStateEnum(Integer state, String name) {
        this.state = state;
        this.name = name;
    }

    /**
     * 获取状态.
     * @return
     */
    public Integer getState() {
        return this.state;
    }

    /**
     * 获取名称.
     * @return
     */
    public String getName() {
        return this.getName();
    }
}
